package com.treasure.mall.biz.entity.user;

import lombok.Data;

import javax.persistence.*;

/**
 * 
 * App 微信授权用户
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.entity.user
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/6/11 09:19
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * Copyright 2019-2022 com.treasure.mall.biz.entity.user Inc. All rights reserved.
 */
@Entity
@Data
@Table(name = "zb_user_wechat_app")
public class WechatUserApp {

    @Id
    @Column(name = "open_id", length = 30)
    private String openId;

    @Column(name = "appId", length = 30)
    private String appId;

    @Column(name = "user_id")
    private Long userId;

    @Column(length = 100, name = "nick_name")
    private String nickName;

    @Column(length = 15, name = "pure_phone_number")
    private String purePhoneNumber;

    @Column(length = 15, name = "phone_number")
    private String phoneNumber;

    @Column(name = "sex")
    private Integer sex;
    @Column(length = 100, name = "province")
    private String province;
    @Column(length = 100, name = "city")
    private String city;
    @Column(length = 100, name = "country")
    private String country;
    @Column(length = 200, name = "avatar_url")
    private String avatarUrl;
    @Column(length = 32, name = "union_id")
    private String unionId;
}
